//package cn.ncbank.obp.bi.user.core;
//
//import org.springframework.cloud.openfeign.FeignClientFactoryBean;
//import org.springframework.util.ReflectionUtils;
//
//import java.lang.reflect.Field;
//
//public class FeignClientDevFactoryBean extends FeignClientFactoryBean {
//
//    this.
//
//    public FeignClientDevFactoryBean(FeignClientFactoryBean factoryBean) {
//        setName(factoryBean.getName());
//        setType(factoryBean.getType());
//        setPath(factoryBean.getPath());
//        setContextId(factoryBean.getContextId());
//        setDecode404(factoryBean.isDecode404());
//        setFallback(factoryBean.getFallback());
//        setFallbackFactory(factoryBean.getFallbackFactory());
//        Field refreshableClient = ReflectionUtils.findField(factoryBean.getClass(), "refreshableClient");
//        assert refreshableClient != null;
//        Object refreshableClientVal = ReflectionUtils.getField(refreshableClient, factoryBean);
//        setRefreshableClient((Boolean) refreshableClientVal);
//    }
//
//
//}
